package com.five.community.service;

import com.five.community.bean.Activity;
import com.five.community.bean.Village;
import com.five.community.bean.vo.ActivityVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ActivityService {
    //查询所有活动信息活动一览画面
    List<ActivityVo> selectAll() throws Exception;
    //根据活动标题搜索活动信息
    List<ActivityVo> selectByTitle(String title) throws Exception;
    //根据id删除活动条例
    void delete(long id) throws Exception;
    //添加插入活动信息
    void insert(Activity activity) throws Exception;
    //通过id查询活动信息
    Activity selectById(long id) throws Exception;
    //编辑修改活动信息
    void update(Activity activity) throws Exception;
    //获取分页信息
    PageInfo<ActivityVo> getPageInfo(int pageNum, int pageSize) throws Exception;
}
